package com.example.server.mapper;

import com.example.server.entity.User;
import org.apache.ibatis.annotations.*;

import java.util.List;

@Mapper
public interface UserMapper {

    User getUserById(int iduser);
    List<User> getAllUsers();
    void insertUser(User user);
    void updateUser(User user);
    void deleteUser(int iduser);
    User getUserByUsername(String username);
}
